import request from "@/request/api";
/* 缺陷待处理单 */
// 根据id删除
export function deleteById(data) {
  return request({
      url: "/eam-service-order/defectPending/deleteById",
      method: "delete",
      params: data,
  });
}
// 新增
export function insert(data) {
  return request({
      url: "/eam-service-order/defectPending/insert",
      method: "post",
      data: data,
  });
}
// 批量新增
export function insertBatch(data) {
  return request({
      url: "/eam-service-order/defectPending/insertBatch",
      method: "post",
      data: data,
  });
}
// 新增或修改
export function insertOrUpdate(data) {
  return request({
      url: "/eam-service-order/defectPending/insertOrUpdate",
      method: "post",
      data: data,
  });
}
// 根据id查询
export function getDetails(data) {
  return request({
      url: "/eam-service-order/defectPending/queryById",
      method: "get",
      params: data,
  });
}
// 不分页查询列表
export function queryList(data) {
  return request({
      url: "/eam-service-order/defectPending/queryList",
      method: "get",
      params: data,
  });
}
//查询分页列表
export function queryVoPageList(data) {
  return request({
      url: "/eam-service-order/defectPending/queryVoPageList",
      method: "get",
      params: data,
  });
}
// 根据id更新
export function update(data) {
  return request({
      url: "/eam-service-order/defectPending/update",
      method: "put",
      params: data,
  });
}

